package pe.gob.sedapal.scmultimedia.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pe.gob.sedapal.scmultimedia.dao.ServicioDAO;
import pe.gob.sedapal.scmultimedia.domain.Servicio;
import pe.gob.sedapal.scmultimedia.service.ServicioService;

@Service(value="servicioService")
public class ServicioServiceImpl implements ServicioService {

	
	@Autowired
	private ServicioDAO servicioDAO;
	
	
	@SuppressWarnings("unchecked")
	@Override
	public List<Servicio> listarServicios() {
		// TODO Auto-generated method stub
		HashMap<String, Object> map = new HashMap<String, Object>();
		servicioDAO.listarServicios(map);
		return (List<Servicio>)map.get("result");		
		//return servicioDAO.listarServicios();
	}


	public ServicioDAO getServicioDAO() {
		return servicioDAO;
	}


	public void setServicioDAO(ServicioDAO servicioDAO) {
		this.servicioDAO = servicioDAO;
	}
	
	

}
